﻿<?php
/*****************************************
Wer Wird Millioär
TIT10ANS Webengineering Projekt

TAdminJoker - Jokerobjekt

Autoren: Markus Schwarz
Copyright: 2013 DHBW Mannheim
*****************************************/

class TAdminJoker {
  //___/PRIVATE\_____________
  private $audLow;
  private $audLowMed;
  private $audMed;
  private $audMedHigh;
  private $audHigh;
  
  private $telSureLow;
  private $telSureLowMed;
  private $telSureMed;
  private $telSureMedHigh;
  private $telSureHigh;

  private $telNoIdeaLow;
  private $telNoIdeaLowMed;
  private $telNoIdeaMed;
  private $telNoIdeaMedHigh;
  private $telNoIdeaHigh;
  
  private $riskLow;
  private $riskLowMed;
  private $riskMed;
  private $riskMedHigh;
  private $riskHigh;
  
  //___/CONSTRUCTOR\_________

  function __construct( $telSureLow, $telSureLowMed, $telSureMed, $telSureMedHigh, $telSureHigh,
						$telNoIdeaLow, $telNoIdeaLowMed, $telNoIdeaMed, $telNoIdeaMedHigh, $telNoIdeaHigh,
						$audLow, $audLowMed, $audMed, $audMedHigh, $audHigh,
						$riskLow, $riskLowMed, $riskMed, $riskMedHigh, $riskHigh){
	
	$this->telSureLow=$telSureLow;
	$this->telSureLowMed=$telSureLowMed;
	$this->telSureMed=$telSureMed;
	$this->telSureMedHigh=$telSureMedHigh;
	$this->telSureHigh=$telSureHigh;
	
	$this->telNoIdeaLow=$telNoIdeaLow;
	$this->telNoIdeaLowMed=$telNoIdeaLowMed;
	$this->telNoIdeaMed=$telNoIdeaMed;
	$this->telNoIdeaMedHigh=$telNoIdeaMedHigh;
	$this->telNoIdeaHigh=$telNoIdeaHigh;
	
	$this->audLow=$audLow;
	$this->audLowMed=$audLowMed;
	$this->audMed=$audMed;
	$this->audMedHigh=$audMedHigh;
	$this->audHigh=$audHigh;
	
	$this->riskLow=$riskLow;
	$this->riskLowMed=$riskLowMed;
	$this->riskMed=$riskMed;
	$this->riskMedHigh=$riskMedHigh;
	$this->riskHigh=$riskHigh;
  }

  //___/PUBLIC\______________
  public function checkCompleteness() {
	if (!empty($this->audLow) AND !empty($this->audLowMed) AND !empty($this->audMed) AND !empty($this->audMedHigh) AND !empty($this->audHigh) AND
		!empty($this->telSureLow) AND !empty($this->telSureLowMed) AND !empty($this->telSureMed) AND !empty($this->telSureMedHigh) AND !empty($this->telSureHigh) AND
		!empty($this->telNoIdeaLow) AND !empty($this->telNoIdeaLowMed) AND !empty($this->telNoIdeaMed) AND !empty($this->telNoIdeaMedHigh) AND !empty($this->telNoIdeaHigh) AND
		!empty($this->riskLow) AND !empty($this->riskLowMed) AND !empty($this->riskMed) AND !empty($this->riskMedHigh) AND !empty($this->riskHigh) ) {
		
		return true;
	}
	else {
		return false;
	}
  }
  
  public function checkValue() {
	if (ctype_digit($this->audLow) AND ctype_digit($this->audLowMed) AND ctype_digit($this->audMed) AND ctype_digit($this->audMedHigh) AND ctype_digit($this->audHigh) AND
		ctype_digit($this->telSureLow) AND ctype_digit($this->telSureLowMed) AND ctype_digit($this->telSureMed) AND ctype_digit($this->telSureMedHigh) AND ctype_digit($this->telSureHigh) AND
		ctype_digit($this->telNoIdeaLow) AND ctype_digit($this->telNoIdeaLowMed) AND ctype_digit($this->telNoIdeaMed) AND ctype_digit($this->telNoIdeaMedHigh) AND ctype_digit($this->telNoIdeaHigh) AND
		ctype_digit($this->riskLow) AND ctype_digit($this->riskLowMed) AND ctype_digit($this->riskMed) AND ctype_digit($this->riskMedHigh) AND ctype_digit($this->riskHigh) ) {
		
		if ($this->audLow < 101 AND $this->audLowMed < 101 AND $this->audMed < 101 AND $this->audMedHigh < 101 AND $this->audHigh < 101 AND
			$this->telSureLow < 101 AND $this->telSureLowMed < 101 AND $this->telSureMed < 101 AND $this->telSureMedHigh < 101 AND $this->telSureHigh < 101 AND
			$this->telNoIdeaLow < 101 AND $this->telNoIdeaLowMed < 101 AND $this->telNoIdeaMed < 101 AND $this->telNoIdeaMedHigh < 101 AND $this->telNoIdeaHigh < 101 AND
			$this->riskLow < 101 AND $this->riskLowMed < 101 AND $this->riskMed < 101 AND $this->riskMedHigh < 101 AND $this->riskHigh < 101){
			return true;
			
			if ($this->audLow > 0 AND $this->audLowMed > 0 AND $this->audMed > 0 AND $this->audMedHigh > 0 AND $this->audHigh > 0 AND
				$this->telSureLow > 0 AND $this->telSureLowMed > 0 AND $this->telSureMed > 0 AND $this->telSureMedHigh > 0 AND $this->telSureHigh > 0 AND
				$this->telNoIdeaLow > 0 AND $this->telNoIdeaLowMed > 0 AND $this->telNoIdeaMed > 0 AND $this->telNoIdeaMedHigh > 0 AND $this->telNoIdeaHigh > 0 AND
				$this->riskLow > 0 AND $this->riskLowMed > 0 AND $this->riskMed > 0 AND $this->riskMedHigh > 0 AND $this->riskHigh > 0){
					
				return true;
			}
			else {
				return false;
			}
		}
		else {
			return false;
		}
	}
	else {
		return false;
	}
  
  }
  
  //___/GET\_________________
  public function getAudLow(){
    return $this->audLow;
  }
  
  public function getAudLowMed(){
    return $this->audLowMed;
  }
 
  public function getAudMed(){
    return $this->audMed;
  }

  public function getAudMedHigh(){
    return $this->audMedHigh;
  }
  
  public function getAudHigh(){
    return $this->audHigh;
  }
  

  public function getTelSureLow(){
    return $this->telSureLow;
  }
  
  public function getTelSureLowMed(){
    return $this->telSureLowMed;
  }
 
  public function getTelSureMed(){
    return $this->telSureMed;
  }

  public function getTelSureMedHigh(){
    return $this->telSureMedHigh;
  }
  
  public function getTelSureHigh(){
    return $this->telSureHigh;
  }
  
  public function getTelNoIdeaLow(){
    return $this->telNoIdeaLow;
  }
  
  public function getTelNoIdeaLowMed(){
    return $this->telNoIdeaLowMed;
  }
 
  public function getTelNoIdeaMed(){
    return $this->telNoIdeaMed;
  }

  public function getTelNoIdeaMedHigh(){
    return $this->telNoIdeaMedHigh;
  }
  
  public function getTelNoIdeaHigh(){
    return $this->telNoIdeaHigh;
  }
  
  
  public function getRiskLow(){
    return $this->riskLow;
  }
  
  public function getRiskLowMed(){
    return $this->riskLowMed;
  }
 
  public function getRiskMed(){
    return $this->riskMed;
  }

  public function getRiskMedHigh(){
    return $this->riskMedHigh;
  }
  
  public function getRiskHigh(){
    return $this->riskHigh;
  }
  
  //___/SET\_________________
  public function setAudLow(){
    $this->audLow=$value;
  }

  public function setAudLowMed(){
    $this->audLowMed=$value;
  }

  public function setAudMed(){
    $this->audMed=$value;
  }
 
  public function setAudMedHigh(){
    $this->audMedHigh=$value;
  }
  
  public function setAudHigh(){
    $this->audHigh=$value;
  }

  
  public function setTelSureLow(){
    $this->telSureLow=$value;
  }

  public function setTelSureLowMed(){
    $this->telSureLowMed=$value;
  }

  public function setTelSureMed(){
    $this->telSureMed=$value;
  }
 
  public function setTelSureMedHigh(){
    $this->telSureMedHigh=$value;
  }
  
  public function setTelSureHigh(){
    $this->telSureHigh=$value;
  }

  
  public function setTelNoIdeaLow(){
    $this->telNoIdeaLow=$value;
  }

  public function setTelNoIdeaLowMed(){
    $this->telNoIdeaLowMed=$value;
  }

  public function setTelNoIdeaMed(){
    $this->telNoIdeaMed=$value;
  }
 
  public function setTelNoIdeaMedHigh(){
    $this->telNoIdeaMedHigh=$value;
  }
  
  public function setTelNoIdeaHigh(){
    $this->telNoIdeaHigh=$value;
  }

  
  public function setRiskLow(){
    $this->riskLow=$value;
  }

  public function setRiskLowMed(){
    $this->riskLowMed=$value;
  }

  public function setRiskMed(){
    $this->riskMed=$value;
  }
 
  public function setRiskMedHigh(){
    $this->riskMedHigh=$value;
  }
  
  public function setRiskHigh(){
    $this->riskHigh=$value;
  }
}